<div class="wide form">

<?php $form = $this->beginWidget('PsActiveForm', array(
	'action' => Yii::app()->createUrl($this->route),
	'method' => 'get',
)); ?>

	<div class="row">
		<?php echo $form->label($ticketTemplate, 'id'); ?>
		<?php echo $form->textField($ticketTemplate, 'id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($ticketTemplate, 'subject'); ?>
		<?php echo $form->textField($ticketTemplate, 'subject', array('maxlength' => 255)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($ticketTemplate, 'summary'); ?>
		<?php echo $form->textArea($ticketTemplate, 'summary'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($ticketTemplate, 'agency_id'); ?>
		<?php echo $form->dropDownList($ticketTemplate, 'agency_id', GxHtml::listDataEx(Agency::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All'))); ?>
	</div>

	<div class="row buttons">
		<?php echo GxHtml::submitButton(Yii::t('app', 'Search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->
